<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <style type="text/css">
            .col-95 {
                width: 95%;
            }

            .col-5 {
                width: 5%;
            }
        </style>

    </ui:define>

    <ui:define name="content">
        <div style="margin:5px;">
            <h:form id="form">
                <p:growl id="msgs" showDetail="false" life="5500"/>
                <p:fieldset style="text-align: right">
                    <p:commandButton value="当日传票查询" action="#{seaStar8822Action.onQuery}" update="qryTable, msgs"/>

                </p:fieldset>
                <p:ajaxStatus style="height:20px;text-align:center">
                    <f:facet name="start">
                        <h:graphicImage value="/images/ajaxloadingbar.gif"/>
                    </f:facet>
                    <f:facet name="complete">
                        <h:outputText value=""/>
                    </f:facet>
                </p:ajaxStatus>
                <p:dataTable var="record" value="#{seaStar8822Action.lazyModel}" paginator="true" rows="10"
                             paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                             rowsPerPageTemplate="5,10,15,30,100" id="qryTable" lazy="true"
                             currentPageReportTemplate="{startRecord}-{endRecord} 共{totalRecords}笔"
                             emptyMessage="数据记录为空..." paginatorPosition="bottom">
                    <p:column headerText="客户号" style="text-align: center">
                        <h:outputText value="#{record.CUSIDT}"/>
                    </p:column>
                    <p:column headerText="核算码" style="text-align: center">
                        <h:outputText value="#{record.APCODE}"/>
                    </p:column>
                    <p:column headerText="币别" style="text-align: center">
                        <h:outputText value="#{record.CURCDE}"/>
                    </p:column>
                    <p:column headerText="传票套号" style="text-align: center">
                        <h:outputText value="#{record.VCHSET}"/>
                    </p:column>
                    <p:column headerText="套内序号" style="text-align: center">
                        <h:outputText value="#{record.SETSEQ}"/>
                    </p:column>
                    <p:column headerText="金额" style="text-align: center">
                        <h:outputText value="#{record.TXNAMT}" style="text-align: right">
                        <f:convertNumber pattern="###,###,##0.00"/>
                        </h:outputText>
                    </p:column>
                    <p:column headerText="柜员" style="text-align: center">
                        <h:outputText value="#{record.TLRNUM}"/>
                    </p:column>
                    <p:column headerText="交易日期" style="text-align: center">
                        <h:outputText value="#{record.ERYDAT}"/>
                    </p:column>
                    <p:column headerText="交易时间" style="text-align: center">
                        <h:outputText value="#{record.ERYTIM}"/>
                    </p:column>
                    <p:column headerText="摘要" style="text-align: center">
                        <h:outputText value="#{record.FURINF}" style="text-align: left"/>
                    </p:column>
                </p:dataTable>
            </h:form>
        </div>
    </ui:define>
</ui:composition>